package com.music.peacerhythms.widget;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

import androidx.annotation.Nullable;

import com.music.peacerhythms.R;
import com.music.peacerhythms.Uakj.SoundPoolManager;

import java.util.Timer;
import java.util.TimerTask;

public class WidgetService extends Service {


    private final String ACTION_UPDATE_ALL = "com.lyl.widget.UPDATE_ALL";

    private static final int UPDATE_TIME = 1000;

    private Timer mTimer;
    private TimerTask mTimerTask;


    @Override
    public void onCreate() {
        super.onCreate();



        SoundPoolManager.getAppManager().autoResume();

    }

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        SoundPoolManager.getAppManager().autoPause();
    }


    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        super.onStartCommand(intent, flags, startId);
        return START_STICKY;
    }
}